package com.naiterui.ehp.bp.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * <pre>
 *
 * </pre>
 *
 * @author fangguanhong
 * @date 2020/4/15 上午11:32
 * @since 1.0.0
 */
@Entity
@Table(name = "attend")
public class Attend implements Serializable {
    private static final long serialVersionUID = 3017476549033165669L;

    @EmbeddedId
    private AttendPK attendPK;

    @Column(name = "create_at")
    private Date createAt;

    public AttendPK getAttendPK() {
        return attendPK;
    }

    public void setAttendPK(AttendPK attendPK) {
        this.attendPK = attendPK;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Attend(AttendPK attendPK, Date createAt) {
        this.attendPK = attendPK;
        this.createAt = createAt;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
